//
//  LZRecommendUserCell.m
//  LZBS
//
//  Created by 郝庆 on 16/6/8.
//  Copyright © 2016年 haoqing. All rights reserved.
//

#import "LZRecommendUserCell.h"
#import "LZRecommendUser.h"
#import <UIImageView+WebCache.h>

@interface LZRecommendUserCell ()
@property (weak, nonatomic) IBOutlet UILabel *screenNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *fansCountLabel;
@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;

@end

@implementation LZRecommendUserCell

- (void)setUser:(LZRecommendUser *)user
{
    _user = user;
    self.screenNameLabel.text = user.screen_name;
    [self.headerImageView lz_setCircleHeader:user.header];
    
    if (user.fans_count > 10000) {
        self.fansCountLabel.text =  [NSString stringWithFormat:@"%.f人关注",user.fans_count / 10000.0];
    } else {
        self.fansCountLabel.text =  [NSString stringWithFormat:@"%.zd人关注",user.fans_count];
    }
}

@end
